<#assign ctx = request.contextPath />
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" href="/favicon.ico" >
<LINK rel="Shortcut Icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/lib/Hui-iconfont/1.0.7/iconfont.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/css/style.css" />

<title>新增限时抢购</title>
</head>
<body>
<div class="page-container">
	<font color=red>${tip!''}</font>
	
	
	<form class="form form-horizontal" id="form-article-add" action="${ctx}/admin/time/addTime" method="post">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
			<span class="c-red">*</span>
			抢购商品：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
				<select name="goods.id" id="gid" style="width:250px">
					<option value="">==请选择商品==</option>
				</select>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
			<span class="c-red">*</span>
			抢购时间：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text Wdate"   name="limitDate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">
			<span class="c-red">*</span>
			是否启用：
			</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="radio" name="isEnd" value="1" checked="checked"/>启用
				<input type="radio" name="isEnd" vlaue="0"/>不启用
			</div>
		</div>
		
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>


<script type="text/javascript" src="${ctx}/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="${ctx}/static/lib/jquery/jquery.form.js"></script>
<script type="text/javascript" src="${ctx}/static/lib/jquery/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${ctx}/static/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.js"></script> 
<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.admin.js"></script> 
<script>

	$(function(){
		
		//异步加载商品列表
		$.post("${ctx}/admin/goods/getAjaxGoodsList", function(data){
			//迭代数据
			for(var i=0;i<data.length;i++){
				$("<option></option>").val(data[i].id).text(data[i].title).appendTo("#gid");
			}
		});
	})
</script>

</body>
</html>